package controllers

import (
	"github.com/astaxie/beego/context"
	"ktvserver/webserver/static"
)

// 返回内部的静态文件
func FilterStatic(ctx *context.Context) {

	filename := ctx.Input.Param(":splat")
	data, dataType, ok := static.GetStaticFileContent(filename)
	if ok {
		ctx.Output.Header("Content-Type", dataType)
		ctx.Output.Body(data)
	}

}
